import http from 'axios'

const axios = http.create({
    timeout: 10000,
    baseURL:'http://znyib.com:8181'
})

axios.interceptors.request.use(function (config) {
    return config;
}, function (error) {
    return Promise.reject(error);
});

axios.interceptors.response.use(function (response) {
    return response.data;
}, function (error) {
    return Promise.reject(error);
});

export  default  axios;